<?php slot('title', 'Liste de actualités') ?>
<?php slot('active', 'news') ?>
<h1>Actualités pour le tag: <?php echo $tag ?></h1>
<?php include_partial('actualite/image-list', array('actualites' => $pager->getResults()) ) ?>
<?php if($pager->haveToPaginate()): ?>
<div class="pagination">
    <a href="<?php echo url_for('actualite') ?>?page=1"><< </a>
    <a href="<?php echo url_for('actualite') ?>?page=<?php echo $pager->getPreviousPage() ?>">< </a>
    <?php foreach($pager->getLinks() as $page): ?>
        <?php if($page == $pager->getPage() ): ?>
            <span class="current-page"><?php echo $pager->getPage() ?></span>
        <?php else: ?>
            <a href="<?php echo url_for('actualite') ?>?page=<?php echo $page ?>"><?php echo $page?> </a>
        <?php endif; ?>
    <?php endforeach; ?>
    <a href="<?php echo url_for('actualite') ?>?page=<?php echo $pager->getNextPage() ?>">> </a>
    <a href="<?php echo url_for('actualite') ?>?page=<?php echo $pager->getLastPage() ?>">>> </a>
</div>
<?php endif; ?>
